<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org">

<head th:fragment="common_header">
    <link rel="stylesheet" href="css/bootstrap.min.css"/>
    <title>Spring Boot Kotlin</title>
</head>

<nav class="navbar navbar-inverse" th:fragment="common_nav">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="/">Spring Boot Kotlin</a>
        </div>
        <ul class="navbar-nav nav">
            <li class="active"><a class="nav-item nav-link" href="/">Home</a></li>
        </ul>
        <ul class="navbar-nav nav">
            <li><a class="nav-item nav-link" href="todos">Todo</a></li>
        </ul>
    </div>
</nav>

<div class="alert-container" th:fragment="common_alert">
    <div th:text="${success}" th:class="(${success == null} ? 'hidden' : 'show') + ' alert alert-success'"></div>
</div>

</html>
